package jp.go.aist.six.test.util.castor.persist;


public class Computer
extends Product
{

    private String  _cpu;


    public Computer()
    {

    }


    public Computer(
                    final int id,
                    final String cpu,
                    final String name,
                    final float price,
                    final ProductDetail[] details,
                    final ProductGroup group,
                    final Category[] categories
                    )
    {
        super( id, name, price, details, group, categories );
        setCpu( cpu );
    }


    public String getCpu()
    {
        return _cpu;
    }


    public void setCpu( String cpu )
    {
        _cpu = cpu;
    }


    public String toString()
    {
        return "Computer-" + System.identityHashCode( this )
        + "<id: " + getId()
        + ", cpu: " + getCpu()
        + ", name: " + getName()
        + ", price: " + getPrice()
        + ", details: " + getDetails()
        + ", group: " + getGroup()
        + ", categories: " + getCategories()
        + ">";
    }

}
